{extend name="base" /}
{block name="body"}
{include file="public/category" /}

<div class="layui-container fly-marginTop fly-user-main">
    <ul class="layui-nav layui-nav-tree layui-inline" lay-filter="user">
        <li class="layui-nav-item">
            <a href="index.html"><i class="layui-icon">&#xe612;</i>用户中心</a>
        </li>
        <li class="layui-nav-item">
            <a href="set.html"><i class="layui-icon">&#xe620;</i>基本设置</a>
        </li>
        <li class="layui-nav-item layui-this">
            <a href="message.html"><i class="layui-icon">&#xe611;</i>我的消息</a>
        </li>
    </ul>

    <div class="site-tree-mobile layui-hide">
        <i class="layui-icon">&#xe602;</i>
    </div>
    <div class="site-mobile-shade"></div>

    <div class="site-tree-mobile layui-hide">
        <i class="layui-icon">&#xe602;</i>
    </div>
    <div class="site-mobile-shade"></div>

    <div class="fly-panel fly-panel-user" pad20>
        <div class="layui-tab layui-tab-brief" lay-filter="user" id="LAY_msg" style="margin-top: 15px;">
            <button class="layui-btn layui-btn-danger" id="LAY_delallmsg">清空全部消息</button>
            <div id="LAY_minemsg" style="margin-top: 10px;">
                <!--<div class="fly-none">您暂时没有最新消息</div>-->
                <ul class="mine-msg">
                    {foreach name='list' item='vo'}
                    <li>
                        {eq name='vo.from' value='10000'}
                        <blockquote class="layui-elem-quote">系统消息：{$vo.content}</blockquote>
                        {else/}
                        <blockquote class="layui-elem-quote"><a href="{:url('/u/' . $vo['from'],array(),'',true)}" target="_blank"><cite>{$vo.from_name}</cite></a>评论了您分享的<a target="_blank" href="{:url('/file/' . $vo['pan_id'],array(),'html',true)}#comment-{$vo.id}"><cite>{$vo.pan_title}</cite></a></blockquote>
                        {/eq}
                        <p><span>{$vo.create_time}</span><a data-action="{:url('/user/message',array('action' => 'delete'),'html',true)}" data-id="{$vo.id}" href="javascript:;" class="layui-btn layui-btn-small layui-btn-danger fly-delete">删除</a></p>
                    </li>
                    {/foreach}
                </ul>
            </div>
        </div>
    </div>

</div>
{/block}